<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>nih: nih::BFTree&lt; Node_iterator, Domain_type &gt; Struct Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nih
   &#160;<span id="projectnumber">0.5</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('structnih_1_1_b_f_tree.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">nih::BFTree&lt; Node_iterator, Domain_type &gt; Struct Template Reference<div class="ingroups"><a class="el" href="group__trees.html">Trees</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="nih::BFTree" -->
<p>A simple Breadth-First Tree model implementation.  
 <a href="structnih_1_1_b_f_tree.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="model_8h_source.html">model.h</a>&gt;</code></p>

<p><a href="structnih_1_1_b_f_tree-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a49a71f0c9b5adbb2d0ecd7512cc5920c"></a><!-- doxytag: member="nih::BFTree::domain_type" ref="a49a71f0c9b5adbb2d0ecd7512cc5920c" args="" -->
typedef Domain_type&#160;</td><td class="memItemRight" valign="bottom"><b>domain_type</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f627e9a846cc35b939b421b45f279d2"></a><!-- doxytag: member="nih::BFTree::node_iterator" ref="a0f627e9a846cc35b939b421b45f279d2" args="" -->
typedef Node_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>node_iterator</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af59970d8c46be0390ce28e37acff3c85"></a><!-- doxytag: member="nih::BFTree::node_type" ref="af59970d8c46be0390ce28e37acff3c85" args="" -->
typedef std::iterator_traits<br class="typebreak"/>
&lt; node_iterator &gt;::value_type&#160;</td><td class="memItemRight" valign="bottom"><b>node_type</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab98a2162885f15d504cfa262b47bc771"></a><!-- doxytag: member="nih::BFTree::tree_type" ref="ab98a2162885f15d504cfa262b47bc771" args="" -->
typedef <a class="el" href="structnih_1_1breadth__first__tree.html">breadth_first_tree</a>&#160;</td><td class="memItemRight" valign="bottom"><b>tree_type</b></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afe4371df8f9c91081a16ff33098a1342"></a><!-- doxytag: member="nih::BFTree::BFTree" ref="afe4371df8f9c91081a16ff33098a1342" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_b_f_tree.html#afe4371df8f9c91081a16ff33098a1342">BFTree</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">empty constructor <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aff13c32b85c7604d9bc1d14fa5416334"></a><!-- doxytag: member="nih::BFTree::BFTree" ref="aff13c32b85c7604d9bc1d14fa5416334" args="(const node_iterator nodes, const uint32 n_leaves, const uint2 *leaves, const uint32 n_levels, const uint32 *levels)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_b_f_tree.html#aff13c32b85c7604d9bc1d14fa5416334">BFTree</a> (const node_iterator nodes, const uint32 n_leaves, const uint2 *leaves, const uint32 n_levels, const uint32 *levels)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">constructor <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39ddeb39862a4572fdfb08a631d5c85e"></a><!-- doxytag: member="nih::BFTree::get_level_count" ref="a39ddeb39862a4572fdfb08a631d5c85e" args="() const " -->
NIH_HOST_DEVICE uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_b_f_tree.html#a39ddeb39862a4572fdfb08a631d5c85e">get_level_count</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return the number of levels <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab9f387666c6110dc23033b43b2507477"></a><!-- doxytag: member="nih::BFTree::get_level" ref="ab9f387666c6110dc23033b43b2507477" args="(const uint32 i) const " -->
NIH_HOST_DEVICE uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_b_f_tree.html#ab9f387666c6110dc23033b43b2507477">get_level</a> (const uint32 i) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return the i-th level <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac7d9b23a296d7c36eccdaaccfb90009e"></a><!-- doxytag: member="nih::BFTree::get_node" ref="ac7d9b23a296d7c36eccdaaccfb90009e" args="(const uint32 index) const " -->
NIH_HOST_DEVICE node_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_b_f_tree.html#ac7d9b23a296d7c36eccdaaccfb90009e">get_node</a> (const uint32 index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">retrieve a node <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acd4c65c4ddff86d0dbb3d57ac10f754e"></a><!-- doxytag: member="nih::BFTree::get_leaf_count" ref="acd4c65c4ddff86d0dbb3d57ac10f754e" args="() const " -->
NIH_HOST_DEVICE uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_b_f_tree.html#acd4c65c4ddff86d0dbb3d57ac10f754e">get_leaf_count</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return the number of leaves <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7990e513530c87c5f315895d160093ad"></a><!-- doxytag: member="nih::BFTree::get_leaf" ref="a7990e513530c87c5f315895d160093ad" args="(const uint32 index) const " -->
NIH_HOST_DEVICE uint2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_b_f_tree.html#a7990e513530c87c5f315895d160093ad">get_leaf</a> (const uint32 index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">retrieve a leaf <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a207f6d738f623e63072604330cb2c4e0"></a><!-- doxytag: member="nih::BFTree::m_nodes" ref="a207f6d738f623e63072604330cb2c4e0" args="" -->
const node_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>m_nodes</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a93a8187164cac6aa7173a923da46dc17"></a><!-- doxytag: member="nih::BFTree::m_leaf_count" ref="a93a8187164cac6aa7173a923da46dc17" args="" -->
uint32&#160;</td><td class="memItemRight" valign="bottom"><b>m_leaf_count</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2f205903e5befb20ffdb3a32ac9aaa89"></a><!-- doxytag: member="nih::BFTree::m_leaves" ref="a2f205903e5befb20ffdb3a32ac9aaa89" args="" -->
const uint2 *&#160;</td><td class="memItemRight" valign="bottom"><b>m_leaves</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad94ee066a43eca1292650e128ec6e752"></a><!-- doxytag: member="nih::BFTree::m_level_count" ref="ad94ee066a43eca1292650e128ec6e752" args="" -->
uint32&#160;</td><td class="memItemRight" valign="bottom"><b>m_level_count</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd65c782cabd3d0512eafec85e116d5a"></a><!-- doxytag: member="nih::BFTree::m_levels" ref="abd65c782cabd3d0512eafec85e116d5a" args="" -->
const uint32 *&#160;</td><td class="memItemRight" valign="bottom"><b>m_levels</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Node_iterator, typename Domain_type&gt;<br/>
struct nih::BFTree&lt; Node_iterator, Domain_type &gt;</h3>

<p>A simple Breadth-First Tree model implementation. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>tree/<a class="el" href="model_8h_source.html">model.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>nih</b>      </li>
      <li class="navelem"><a class="el" href="structnih_1_1_b_f_tree.html">BFTree</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Thu Dec 15 2011 11:56:22 for nih by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
